﻿@model Mondial2014.Controllers.QualifiersController.QualifiersViewModel

@{
    ViewBag.Title = "שלב הצלבה";
}

<h2>קבוצות בשלבי ההצלבה</h2>

@if (Model.Admin)
{
    @Html.ActionLink("עריכה", "Edit")
}

<div class="form-horizontal">
    
    <table class="table">
        <tr>
            <th>
                שמינית
            </th>
            <th>
                רבע
            </th>
            <th>
                חצי
            </th>
            <th>
                גמר
            </th>
            <th>
                זוכה
            </th>
        </tr>
        <tr>
            <td>
                @foreach (var team in Model.Last16S)
                {
                    @team
                    <br />
                }
            </td>
            <td>
                @foreach (var team in Model.Quarters)
                {
                    @team
                    <br />
                }
            </td>
            <td>
                @foreach (var team in Model.Semis)
                {
                    @team
                    <br />
                }
            </td>
            <td>
                @foreach (var team in Model.Finals)
                {
                    @team
                    <br />
                }
            </td>
            <td>
                @if (Model.Winner != null)
                {
                    @Model.Winner
                }
            </td>
        </tr>
    </table>

</div>